package com.tiger.cloud.service.crm;

import java.util.List;

import com.tiger.cloud.common.mybatis.TigerBaseServiceI;
import com.tiger.cloud.form.UserLoginForm;
import com.tiger.cloud.model.crm.User;
import com.tiger.cloud.model.crm.UserInfo;
import com.tiger.cloud.model.ext.UserInfoAndCompany;
import com.tiger.cloud.model.ext.UserInfos;
import com.tiger.cloud.util.Page;

/**
 * 用户管理
 */
public interface IUserService extends TigerBaseServiceI<User> {
	/**
	 * 用户注册
	 */
	User register(UserLoginForm userLoginForm);

	Long countUserList(UserInfos user);
	
	boolean updateUser(User user,UserInfo userInfo);
	
	boolean sendJpushMessage(List<String> jpushCodeList) ;
	
	boolean sendJpushMessage(String jpushCode) ;

	List<UserInfoAndCompany> findUserAndCompanyInfo(long userId);

	Page<UserInfos> findUserList(UserInfos user);

	boolean sendPushForAlert(String alias,String userName);

	Page<UserInfos> findMyAreaUserList(UserInfos user);

	long findMyAreaUserCount(UserInfos user);
	
	/**
	 * 根据手机号查询整个用户信息
	 * @param phone
	 * @return
	 */
	User selectByPhone(String phone);
	
}